package com.net.shop.car.manager.utils;

public interface Constants {
	/**
	 * android标志
	 */
	public static final String ANDROID_TAG = "android";

	/**
	 * 登录
	 */
	public static final String LOGIN = "imilogin";
	/**
	 * 更新用户信息
	 */
	public static final String UPDATE_MEMBER_INFO = "imiupdatemember";

	/**
	 * 获取用户信息
	 */
	public static final String GET_MEMBER_INFO = "imimemberinfo";

	/**
	 * 个人中心
	 */
	public static final String MEMBER_CENTER = "imimembercenter";

	/**
	 * 修改个人信息
	 */
	public static final String MODIFY_MEMBER = "imiupdatemember";

	/**
	 * 注册
	 */
	public static final String REGISTER = "imiregister";

	/**
	 * 获取注册验证码
	 */
	public static final String REGISTER_MSG = "imiregistermsg";
	/**
	 * 找回密码--发送手机验证码
	 */
	public static final String SEND_PWD_RAND = "imiseachpwdmsg";

	/**
	 * 找回密码
	 */
	public static final String LOOK_FOR_PWD = "imiseachpwd";
	/**
	 * 修改密码
	 */
	public static final String MODIFY_PWD = "imiupdatepwd";
	/**
	 * 首页活动图片展示
	 */
	public static final String GET_HEAD_PICTURES = "imipicture";
	/**
	 * 省份选择
	 */
	public static final String PROVICE_CHOOSE = "imiprovince";
	/**
	 * 市选择
	 */
	public static final String CITY = "imicity";
	/**
	 * 县选择
	 */
	public static final String COUNTRY = "imicounty";
	/**
	 * 热门城市 
	 */
	public static final String HOTCITY = "imihotcity";
   /**
	 * 车周边
	 */
	public static final String SELLER_LIST = "imisellerlist";
	/**
	 * 
	 * 服务类型
	 *
	 */
	public enum ServiceType {
		/**
		 * 洗车
		 */
		jzxc("jzxc"),
		/**
		 * 拖车
		 */
		pullcar("pullcar"),
		/**
		 * 路救
		 */
		waysave("waysave"),
		/**
		 * 保养
		 */
		upkeep("upkeep"),
		/**
		 * 代架
		 */
		travel("travel"),
		/**
		 * 维修
		 */
		weixiu("weixiu");
		/**
		 * 
		 */
		public final String description;
		/**
		 * 
		 * @param string String
		 */
		ServiceType(String string) {
			this.description = string;
		}
		
		public static ServiceType getServiceType(String des) {
			for (ServiceType serviceType : values()) {
				if (serviceType.description.equalsIgnoreCase(des)) {
					return serviceType;
				}
			}
			return null;
		}
	}

	
	/**
	 * 商家详情
	 */
	public static final String SELLER_INFO = "imiseller"; 
	/**
	 * 商家详情页
	 */
	public static final String SELLER_INFO_PAGE = "imisellerpage";
	
	/**
	 * 油卡详情
	 */
	public static final String CARD_DETAIL = "imicarddetail";
	
	/**
	 * 17、	油卡删除
	 */
	public static final String DELETE_CARD = "imicarddelete";
	/**
	 * 18、	油卡绑定
	 */
	public static final String BIND_CARD="imicardbind";
	/**
	 * 油卡划拨详情
	 */
	public static final String HUA_BO="imicarddetail";
	/**
	 * 4. 油卡查询列表
	 */
	/**
	 * 5 油卡积分
	 */
	public static final String JIFEN_CARD="imipayvb";
	public static final String  LIST_CARD="imicardlist";
	
	/**
	 * 19、	商家详情（路救）
	 */
	public static final String WAY_SAVE = "imisave";
	
	/**
	 * 商家详情（代驾、拖车）
	 */
	public static final String SELLER_TWO = "imisellertwo";
	
	/**
	 * 22、	积分兑换
	 */
	public static final String JIFEN_EXCHANGE = "imipoint";
	/**
	 * 13、	分享有礼
	 */
	public static final String SHARE_YOULI = "imishare";
	/**
	 *	积分兑换详情页面--油卡
	 */
	public static final String JIFEN_DETAIL_OILCARD = "imivbforcard";
	/**
	  * 积分兑换详情页面--服务
	 */
	public static final String JIFEN_DETAIL_SERVICE = "imivbforservice";
	/**
	 * 5.	积分换服务
	 */
	public static final String JIFEN_TO_SERVICE = "imivbtoservice";
	/**
	 * 4.	积分换油
	 */
	public static final String JIFEN_TO_OILCARD = "imivbtocard";
	/**
	  * 25、	支付方式+可用VB
	 */
	public static final String PAYTYPE = "imipay";
	/**
	  * 20、	商品生成订单
	 */
	public static final String CREATE_DINGDAN = "imicreateorder";
	/**
	  * 1.	我的订单
	 */
	public static final String DINGDAN_ORDER = "imimyorder";
	/**
	  * 2.	订单列表
	 */
	public static final String DINGDAN_ORDER_LIST = "imimyorderlist";
	/**
	  * 5.	订单详情
	 */
	public static final String DINGDAN_ORDER_DETAIL = "imiorderdetail";
	
	/**
	  * 4.	油卡订单列表
	 */
	public static final String DINGDAN_CARDORDER_LIST = "imicardorderlist";
	/**
	  * 7.	油卡订单详情
	 */
	public static final String DINGDAN_CARDORDER_DETAIL = "imicardorderdetail";
	
	/**
	 * 3.	退款订单列表
	 */
	public static final String DINGDAN_TUIKUN_LIST = "imibackorderlist";
	/**
	 * 3.	退款订单详细
	 */
	public static final String DINGDAN_TUIKUN_DETAIL = "imibackorderdetail";
	
	/**
	 * 修改个人头像
	 */
	public static final String HEADIMGE = "imiheadimg";
	/**
	 * 充值
	 */
	public static final String PAYREFUND = "imipayrefund";
	/**
	 * 充值规则
	 */
	public static final String GETVB = "imigetvb";
	/**
	 * 版本更新
	 */
	public static final String UPDATE_VERSION = "imiversion";
	/**
	 * 2.	图片详情
	 */
	public static final String PICH_INFO = "imipicbyid";

	//未支付(0)、已支付(1)、以服务(2)、积分兑换(4)、线上(5)、线下(6)
	public enum DingDanType {
		drawback(3),
		oilcard(5),
		finish(4),
		vbmail(0),
		online(2),
		outline(1);
		public final int value;

		/**
		 * @param value
		 */
		private DingDanType(int value) {
			this.value = value;
		}
		
		public static DingDanType getType(int value) {
			for(DingDanType danType : values()) {
				if (value == danType.value) {
					return danType;
				}
			}
			return null;
		}
	}
	/**
	 * 
	 */
	public static final String MONEY_CN = "￥";
}
